home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14558 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: dawn.mmm.com!news
  2. From: cjsonnack@mmm.com (Chris Sonnack)
  3. Newsgroups: comp.lang.c,comp.unix.programmer
  4. Subject: Re: Q: '\n' character
  5. Followup-To: comp.lang.c,comp.unix.programmer
  6. Date: 15 Apr 1996 14:50:12 -0500
  7. Organization: 3M/IT/EIS (St.Paul,MN 55144)
  8. Message-ID: <4ku99k$4ub@dawn.mmm.com>
  9. References: <4kj66f$k0o@ren.cei.net> <4kko80$8np@news.ld.centuryinter.net> <4kkvvsINN8fs@keats.ugrad.cs.ubc.ca> <4kmdsv$ojc@masala.cc.uh.edu> <4kmhpsINN7ak@keats.ugrad.cs.ubc.ca>
  10. Reply-To: cjsonnack@mmm.com (Chris Sonnack)
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Kazimir Kylheku (c2a192@ugrad.cs.ubc.ca) wrote:
  14.  
  15. > Oops, I didn't notice that.
  16.  
  17. Which, by your standards, enables us to call you all sorts of names, right?
  18.  
  19. > So how is it right if it had undesired effects under certain conditions?
  20.  
  21. Because sometimes you need a short, simple solution to a problem and can
  22. pretty much guarentee "certain conditions" will not occur, or if they do,
  23. catastrophic failure is okay in these rare cases. Not recommending this as
  24. a way of working or designing, just pointing the potential DOES exist.
  25.  
  26. > And of course, *real* UNIX users don't put lines longer than 79 chars into
  27. > a textfile anyway...
  28.  
  29. Correct!  ;-> (I know I //never// do!!)
  30.  
  31. > Humor me as to why it is necessary to retain a whole string of data just
  32. > to then scan through it to find its length to remove the trailining
  33. > newline, which was put there by a standard library function that already
  34. > scanned the characters once to _find_ the newline in the first place.
  35.  
  36. I found your solution was the most correct and elegant. In fact, it's a
  37. very nice solution and you did solve the original problem in the best
  38. way it could be solved.
  39.  
  40. Doesn't change the fact that you're still rather a jerk.
  41.  
  42. --
  43. Chris Sonnack  <cjsonnack@mmm.com>                  http://eishcq.mmm.com
  44. Engineering Information Services/Information Technology/3M, St.Paul, Minn
  45. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. An intellectual is someone whose mind watches itself
  47.  
  48. Opinions expressed herein are my own and may not represent those of my employer.
  49.